package com.mrlee.service;

import com.github.pagehelper.PageInfo;
import com.mrlee.bean.Module;
import com.mrlee.bean.Role;
import com.mrlee.utils.AjaxResult;

import java.util.ArrayList;
import java.util.List;


/**
 * Created by dllo on 18/3/9.
 */
public interface RoleService {
    AjaxResult selectAllRole();
    AjaxResult addRole(Role role,List<Integer> modules);
    AjaxResult deleteRole(int roleId);
    AjaxResult updateRole(Role role,List<Integer> modules);
    Role selectRoleById(int roleId);
    List<Module> selectAllModule();
    PageInfo<Role> queryRoleByPage(Integer pageNo, Integer pageSize);
    List<Role> selectRoleList(Integer adminid);
}
